package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_sellInfo")
public class SellInfoBean {
    /**销售信息详情id*/
    @TableId(value = "pk_sellInfoId", type = IdType.AUTO)
    private Integer sellInfoId;
    /**成交价*/
    @TableField("si_dealPrice")
    private Integer dealPrice;
    /**销售数量*/
    @TableField("si_num")
    private Integer num;
    /**产品id*/
    @TableField("fk_productId")
    private String  productId;
    /**在销售详情中的产品*/
    @TableField(exist = false)
    private ProductBean productBeanInSellInfo;
    /**销售订单Id*/
    @TableField("fk_sellOrderId")
    private Integer sellOrderId;

    public SellInfoBean() {
    }

    public Integer getSellInfoId() {
        return sellInfoId;
    }

    public void setSellInfoId(Integer sellInfoId) {
        this.sellInfoId = sellInfoId;
    }

    public Integer getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(Integer dealPrice) {
        this.dealPrice = dealPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public ProductBean getProductBeanInSellInfo() {
        return productBeanInSellInfo;
    }

    public void setProductBeanInSellInfo(ProductBean productBeanInSellInfo) {
        this.productBeanInSellInfo = productBeanInSellInfo;
    }

    public Integer getSellOrderId() {
        return sellOrderId;
    }

    public void setSellOrderId(Integer sellOrderId) {
        this.sellOrderId = sellOrderId;
    }

    @Override
    public String toString() {
        return "SellInfoBean{" +
                "sellInfoId=" + sellInfoId +
                ", dealPrice=" + dealPrice +
                ", num=" + num +
                ", productId=" + productId +
                ", productBeanInSellInfo=" + productBeanInSellInfo +
                ", sellOrderId=" + sellOrderId +"\n"+
                '}';
    }
}
